package com.informatics.polymer.server;

import org.restlet.Application;
import org.restlet.Directory;
import org.restlet.Restlet;
import org.restlet.Router;

public class BuilderApplication extends Application {
	/**
	 * Creates a root restlet that will recieve all incoming calls.
	 */
	@Override
	public Restlet createRoot(){
		//Define attachments
		Router router = new Router(getContext().createChildContext());
		router.attach("/homopolymer",HomopolymerBuilder.class);  //new Directory(getContext(), "clap://thread/com/informatics/polymer/com.informatics.polymer.HomopolymerBuilder"));
		return router;
	}
}
